<html>
    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>历史路线</title>

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="js/jquery/jquery.mobile-1.4.5.min.css"/>

    <link rel="stylesheet" href="css/total/index.css" />
    <link rel="stylesheet" href="css/total/button.css" />
</head>

<body>
    <div data-role="page" id="history">
        <div data-role="none">
            <div class="history_head">
            </div>
            <a data-role="none" href="mine.html" />
                    <image data-role="none" src="img/arrow187.png" class="img-arrow" />
                </a>
            <div>
                <image src="img/头像.png" class="histroy-img-head" />
            </div>
            <div>
                <table class="histroy-table">
                    <tr>
                        <td><h5 class="history_time">2016/7/2</h5></td>
                    </tr>
                    <tr>
                        <td><h4 class="history_station">南京南站</h4></td>
                        <td>
                            <image src="img/change.png" class="histroy-img" />
                        </td>
                        <td><h4 class="history_station">鼓楼站</h4></td>
                        <td>
                            <image src="img/hongxin.png" class="changexin" onclick="changeImage()" />
                        </td>
                        <td>
                            <image style="margin-left:45%;" src="img/dustbin.png" class="histroy-img" />
                        </td>
                    </tr>
                    <tr>
                        <td><h4 class="history_station">鼓楼站</h4></td>
                        <td>
                            <image src="img/change.png" class="histroy-img" />
                        </td>
                        <td><h4 class="history_station">南京南站</h4></td>
                        <td>
                            <div><image src="img/xin.png" class="changexin" onclick="changeImage()" /></div> 
                        </td>
                        <td >
                            <image style="margin-left:45%;" src="img/dustbin.png" class="histroy-img" />
                        </td>
                    </tr>
                    <tr>
                        <td><h5 class="history_time">2016/6/30</h5></td>
                    </tr>
                    <tr>
                        <td><h4 class="history_station">南京站</h4></td>
                        <td>
                            <image src="img/change.png" class="histroy-img" />
                        </td>
                        <td><h4 class="history_station">珠江路</h4></td>
                        <td>
                            <image src="img/hongxin.png" class="changexin" onclick="changeImage()" />
                        </td>
                        <td>
                            <image style="margin-left:45%;" src="img/dustbin.png" class="histroy-img" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
           
          
             <script src="js/jquery/jquery-1.12.0.min.js"></script>
    <script src="js/jquery/jquery.mobile-1.4.5.min.js"></script>
    <script>
              function changeImage()
              {
               element=$(".changexin");
                  if(element.attr('src')=='img/hongxin.png'){
                     element.attr("src","img/xin.png");
                  }
                  else{
                      element.attr("src","img/hongxin.png");
                  }
//               if (element.src.match("hongxin"))
//                 {
//                  element.src="img/xin.png";
//                 }
//               else
//                 {
//                  element.src="img/hongxin.png";
//                 }
              }
             </script>
</body>
</html>